import { createApp } from 'vue'
import './style.css'
import App from '@/App.vue'
import '@/styles/reset.scss'

//引入Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import HospitalTop from '@/components/hospital_top/index.vue'
import HospitalBottom from '@/components/hospital_bottom/index.vue'
import Visitor from '@/components/visitor/index.vue'
// Visitor
import Login from '@/components/login/index.vue'
// 引入路由
import pinia from '@/store'
import router from '@/router/index.ts'

const app = createApp(App)
app.use(router)
// @ts-ignore
app.use(pinia)
app.use(ElementPlus, {
  locale: zhCn
})


import './permission'
app.component('HospitalTop', HospitalTop)
app.component('HospitalBottom', HospitalBottom)
app.component('Visitor', Visitor)
app.component('Login', Login)
app.mount('#app')
